body {
    display: flex;
    flex-direction: column;
    background-color: #eeedeb;

    header {
        position: fixed;
        z-index: 10;
        top: 0px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
        color: white;
    }

    main {
        // position: relative;
        height: 1px;
        flex-grow: 1;

        // 轮播图
        .swiper {
            img {
                width: 100%;
                height: 300px;
            }
        }

        .box {
            // position: absolute;
            // top: 225px;
            // z-index: 10;
            padding: 15px;
            width: 100%;

            li {
                margin-bottom: 10px;
                padding: 10px;
                background-color: white;
                border-radius: 20px;
                width: 100%;
                height: 160px;

                h4 {
                    margin: 10px 0;
                    color: black;
                }

                p {
                    margin-bottom: 10px;
                    color: gray;
                    font-size: 12px;
                }

                // 好评条样式
                .wai {
                    display: inline-block;
                    background-color: #e9ecf1;
                    border-radius: 10px;
                    width: 200px;
                    height: 12px;

                    .nie {
                        position: absolute;
                        display: inline-block;
                        background: linear-gradient(to right, #f89134, #f25b41);
                        border-radius: 10px;
                        width: 140px;
                        height: 12px;

                        .dian {
                            position: absolute;
                            right: 2px;
                            top: 2px;
                            display: inline-block;
                            background-color: white;
                            border-radius: 50%;
                            width: 8px;
                            height: 8px;
                        }
                    }
                }

                i {
                    color: #f25b41;
                    font-size: 12px;
                }

                // 价格的样式
                .price-div {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    width: 100%;

                    .price {
                        color: black;
                    }

                    .text {
                        display: inline-block;
                        background-color: #1a1819;
                        border-radius: 20px;
                        text-align: center;
                        font-weight: bold;
                        font-size: 12px;
                        color: #8e7d6b;
                        line-height: 22px;
                        height: 22px;
                        width: 70px;
                    }
                }

                // li最底部文字样式
                .span-p {
                    margin-top: 10px;
                    display: flex;
                    justify-content: space-between;
                    border-top: 1px solid gray;
                    color: gray;
                    font-size: 12px;
                    line-height: 30px;
                    height: 20px;
                }

                .content {
                    display: flex;
                }
            }

            .lii {
                height: 180px;

                .nie {
                    position: relative;
                    display: inline-block;
                    background: linear-gradient(to right, #f89134, #f25b41);
                    border-radius: 10px;
                    width: 180px;
                    height: 12px;

                    .dian {
                        position: absolute;
                        right: 2px;
                        top: 2px;
                        display: inline-block;
                        background-color: white;
                        border-radius: 50%;
                        width: 8px;
                        height: 8px;
                    }
                }
            }
        }

        // 猜你喜欢
        h3 {
            margin: 10px;
            color: #1a1819;

            span {
                font-size: 12px;
                color: gray;
            }
        }

        .like {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            width: 100%;

            li {
                margin-bottom: 10px;
                border-radius: 20px;
                background-color: white;
                width: 48%;

                .img-p {
                    // width: 100%;
           
                    img {
                     
                        width: 100%;
                        height: 180px;
                        border-radius: 20px 20px 0px 0px;
                    }
                }

                h4 {
                    margin: 5px;
                    color: #1a1819;
                }

                p {
                    margin: 0 0 5px 5px;
                    color: gray;
                    font-size: 12px;
                }

                .price {
                    color: #1a1819;

                    i {
                        text-decoration: line-through;
                        color: gray;
                        font-size: 12px;
                    }
                }

                .discount {
                    margin: 8px 0;
                    width: 100%;

                    .nian {
                        display: inline-block;
                        background-color: #c23f35;
                        border-radius: 5px;
                        text-align: center;
                        color: #d5c89c;
                        height: 15px;
                        line-height: 15px;
                        width: 45px;
                    }


                    img {
                        width: 100px;
                        height: 20px;
                    }
                }
            }
        }
    }
}